#!/usr/bin/env node

const me = {},
    stdout = process.stdout,
    stdin = process.stdin,
    log = console.log,
    msg = ['name','email','qq','teil'];
let i = 0;
stdout.write(msg[i]+':'); 
stdin.on('data',(data)=>{ 
    me[msg[i++]] = data.toString();
    if(msg[i]!=undefined){
        stdout.write(msg[i]+':'); 
    }
});
stdin.on('end',()=>{
    stdout.write('usr_msg:');
    log(me);
});
